﻿namespace Vk.Exceptions
{
    /// <summary>
    /// Information about a captcha
    /// </summary>
    public struct ApiCaptchaInfo
    {
        /// <summary>
        /// Id of the captcha assigned to the user
        /// </summary>
        public string Id;

        /// <summary>
        /// URL of the image with the captcha
        /// </summary>
        public string ImagePath;

        public ApiCaptchaInfo(ApiNode rootNode)
        {
            Id = rootNode.String("captcha_sid");
            ImagePath = rootNode.String("captcha_img");
        }
    }
}